<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>后台管理</title>
	<link rel="stylesheet" href="<?php echo ASSETS_URL ?>/bootstrap/css/bootstrap.min.css">
	<link rel="stylesheet" href="<?php echo ASSETS_URL ?>/js/select2/css/select2.min.css">
	<link rel="stylesheet" href="<?php echo ASSETS_URL ?>/js/jedate/skin/jedate.css">
	<link rel="stylesheet" href="<?php echo ASSETS_URL ?>/css/main/main.css">
	<link rel="stylesheet" href="<?php echo ASSETS_URL ?>/umeditor/themes/default/_css/umeditor.css">
</head>
<body>
	
<script type="text/javascript">
	var ASSETS_PATH = '<?php echo ASSETS_URL ?>';
	var TOKEN = '<?php echo $token ?>';
	var CSRF_NAME,CSRF_TOKEN;
	var REDIRECT_LOGIN_URL = '/#login';
</script>
<script type="text/javascript" src="<?php echo ASSETS_URL ?>/js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo ASSETS_URL ?>/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="<?php echo ASSETS_URL ?>/js/handlebars.min.js"></script>
<script type="text/javascript" src="<?php echo ASSETS_URL ?>/js/handlebars-helpers.js"></script>
<script type="text/javascript" src="<?php echo ASSETS_URL ?>/js/main/main.js"></script>
<script type="text/javascript" src="<?php echo ASSETS_URL ?>/js/select2/js/select2.min.js"></script>
<script type="text/javascript" src="<?php echo ASSETS_URL ?>/js/jedate/jedate.min.js"></script>
<script type="text/javascript">
	if(TOKEN){
		localStorage.setItem('CJKT_MAIN_TOKEN',TOKEN);
	}

	if(!TOKEN && localStorage.getItem('CJKT_MAIN_TOKEN')){
		TOKEN = localStorage.getItem('CJKT_MAIN_TOKEN');
	}

	if(TOKEN) {
		check_token();
	}else{
		Page.go('login', null, true);
	}
</script>
</body>
</html>
